package com.ysu.shop.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysu.shop.pojo.BasePojo;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 耿志龙
 * @since 2020-10-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("user")
public class User extends BasePojo {

    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    @TableField("username")
    private String username;

    /**
     * 密码
     */
    @TableField("password")
    @JSONField(serialize = false)
    private String password;

    /**
     * 联系电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 电子邮箱地址
     */
    @TableField("email")
    private String email;

    /**
     * 用户对应的角色id
     */
    @TableField("role_id")
    private Integer roleId;

    /**
     * 密保问题
     */
    @TableField("question")
    private String question;

    /**
     * 密码答案
     */
    @TableField("answer")
    private String answer;

}
